package org.thirdHero.db.domain;

import org.thirdHero.core.constant.CommonConstant;

import java.math.BigDecimal;

public class LatLng {
    public Double latitude;
    public Double longitude;

    public LatLng(Double latitude, Double longitude) {
        this.latitude = latitude;
        this.longitude = longitude;
    }

    @Override
    public String toString() {
        return "[" + new BigDecimal(latitude).multiply(CommonConstant.ONE_HUNDRED_THOUSAND).intValue() +", " +  new BigDecimal(longitude).multiply(CommonConstant.ONE_HUNDRED_THOUSAND).intValue()   +"]";
    }
}

